const Layout = () => import('@/layout/index.vue')

export default {
  path: '/',
  name: 'Home',
  component: Layout,
  redirect: '/welcome',
  meta: {
    icon: 'code',
    title: '',
    rank: 0,
  },
  children: [
    {
      path: '/dict-data/:dictId',
      name: 'DictData',
      component: () => import('@/views/system/dict/dict-data/index.vue'),
      meta: {
        title: '字典数据',
        showLink: false,
      },
    },
    {
      path: '/auth-role/:userId',
      name: 'AuthRole',
      component: () => import('@/views/system/user/auth-role/index.vue'),
      meta: {
        title: '分配角色',
        showLink: false,
      },
    },
    {
      path: '/auth-user/:roleId',
      name: 'AuthUser',
      component: () => import('@/views/system/role/auth-user/index.vue'),
      meta: {
        title: '分配用户',
        showLink: false,
      },
    },
    {
      path: '/profile',
      name: 'Profile',
      component: () => import('@/views/system/user/profile/index.vue'),
      meta: {
        title: '个人中心',
        showLink: false,
      },
    },
    {
      path: '/tool/gen-edit/:tableId',
      name: 'GenEdit',
      component: () => import('@/views/tool/gen/edit-table.vue'),
      meta: {
        title: '代码生成配置修改',
        showLink: false,
      },
    },
  ],
} as RouteConfigsTable
